/*****************************************************************************
* Keppe Messenger (KMP) Keppe Project-Team User Messaging System
* Copyright (C) 2013-2014 Keppe Project-Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/

#ifndef FRMUPDATE_H
#define FRMUPDATE_H

#include <QDialog>
#include "config.h"

namespace Ui {
class frmUpdate;
}

class frmUpdate : public QDialog
{
    Q_OBJECT

public:
    explicit frmUpdate(QWidget *parent = 0);
    void setVersionType(QString versionType);
    void disableUpdateNotificationButton();
    void enableUpdateNotificationButton();
    ~frmUpdate();

public slots:
    void setNewVersion(QString newVersion);

private slots:
    void on_cmdDisableUpdateNotification_clicked();
    void on_cmdNotNow_clicked();
    void on_cmdInstall_clicked();

signals:
    void disableUpdateNotification();

private:
    Ui::frmUpdate *ui;
    QString updatePath;
    QString versionType;
};

#endif // FRMUPDATE_H
